package com.zhou.service;

import com.zhou.dao.OtherDAO;
import com.zhou.entity.Post;
import com.zhou.entity.ProfessionalTitle;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("otherService")
public class OtherServiceImpl implements OtherService {

    @Autowired
    private OtherDAO otherDAO;

    @Override
    public List<Post> findAllPost() {
        return otherDAO.findAllPost();
    }

    @Override
    public List<ProfessionalTitle> findAllProfessionalTitle() {
        return otherDAO.findAllProfessionalTitle();
    }
}
